﻿@{
    ViewData["Title"] = "Current Poll Feed";
    string servedFrom = "development";

    //var aspnetEnv = Environment.GetEnvironmentVariable("ASPNET_ENV");
    //switch (aspnetEnv.ToLower())
    //{
    //    case "elasticbeanstalk-docker":
    //        servedFrom = "Docker and AWS Elastic Beanstalk";
    //        break;

    //    case "codedeploy":
    //        servedFrom = "Windows/IIS and AWS CodeDeploy";
    //        break;

    //    case "ecs-docker":
    //        servedFrom = "Docker and Amazon EC2 Container Service";
    //        break;

    //    case "default":
    //        break;
    //}

}

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>@ViewData["Title"] - Pollster</title>

        <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
        <link rel="stylesheet" href="~/css/site.css" />
    </head>
    <body>
        <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>
                <div class="navbar-collapse collapse">
                    <ul class="nav navbar-nav">
                        <li><a asp-controller="PollFeed" asp-action="Index">Polls</a></li>
                        <li><a asp-controller="PollCreator" asp-action="Index">Create</a></li>
                    </ul>
                    <div id="servedfrom">This page served from @servedFrom</div>
                </div>
            </div>
        </div>
        <div class="container body-content">
            @RenderBody()
            <hr />
            <footer>
                <p id="copyright">&copy; 2015 - Pollster</p>
            </footer>
        </div>

        <script src="~/lib/jquery/dist/jquery.js"></script>
        <script src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
        <script src="~/lib/hammer.js/hammer.js"></script>

        @RenderSection("scripts", required: false)
    </body>
</html>
